Documentation for infix (elem), infix β
assembled from the following pages:
Language documentation: Operators Β§
From Operators
(Operators) infix (elem), infix β Β§
multi sub infix:<(elem)>(, --> Bool)
Returns True
if $a
is an element of $b
.
say 2 (elem) (1, 2, 3); # OUTPUT: Β«Trueβ€Β» say 4 β (1, 2, 3); # OUTPUT: Β«Falseβ€Β»
Since release 2020.05, β is an alias for this operator.
Language documentation: Sets, bags, and mixes Β§
(Sets, bags, and mixes) infix (elem), infix β Β§
Returns True
if $a
is an element of $b
, else False
. More information, Wikipedia definition.